<template>
	<view>
		<view class="mainpadding flexbetween" @click="jumpurl('/pages/my/xiugaimm')">
			<view class="main_size hei_text">修改密碼</view>
			<u-icon name="arrow-right" color="#999" size="16"></u-icon>
		</view>
		<view class="mainpadding flexbetween" @click="jumpurl('/pages/system/system?type=1')">
			<view class="main_size hei_text">用戶協議</view>
			<u-icon name="arrow-right" color="#999" size="16"></u-icon>
		</view>
		<view class="mainpadding flexbetween" @click="jumpurl('/pages/system/system?type=2')">
			<view class="main_size hei_text">隱私政策</view>
			<u-icon name="arrow-right" color="#999" size="16"></u-icon>
		</view>
		<view class="mainpadding flexbetween" @click="jumpurl('/pages/my/yijianfk')">
			<view class="main_size hei_text">意見反饋</view>
			<u-icon name="arrow-right" color="#999" size="16"></u-icon>
		</view>
		<view class="mainpadding flexbetween" @click="jumpurl('/pages/caozuoshouce/shiyongsc?type=2')">
			<view class="main_size hei_text">使用操作手冊</view>
			<u-icon name="arrow-right" color="#999" size="16"></u-icon>
		</view>
		<view class="mainpadding flexbetween">
			<view class="main_size hei_text">版本號</view>
			<view class="main_size hei_text">1.1.4</view>
		</view>
		<view class="posibottom mainpadding" style="bottom: 0;">
			<view class="submitbtn" @click="show=true">退出登錄</view>
		</view>
		<u-modal :show="show" showCancelButton confirmColor="#FFB800" @cancel="show=false" @confirm="outLogin" confirmText="確認" cancelText="取消">
			<view class="slot-content color_ling text_weight text">
				您確定要退出登錄嗎？
			</view>
		</u-modal>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show:false
			}
		},
		methods: {
			jumpurl(url){
				uni.navigateTo({
					url
				})
			},
			outLogin() { //退出登錄
				this.show = false
				uni.removeStorageSync('token');
				uni.removeStorageSync('user_id');
				uni.removeStorageSync('client_id');
				uni.removeStorageSync('shopstaff_id');
				this.http.toast("退出登錄成功！")
				setTimeout(() => {
					uni.reLaunch({
						url: "/pages/login/login"
					})
				}, 500)
			}
		}
	}
</script>

<style>

</style>
